package com.ruoyi.mixuebingcheng.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 地址区域业务对象 area
 *
 * @author ruoyi
 * @date 2023-10-27
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class AreaBo extends BaseEntity {

    /**
     * 
     */
    @NotBlank(message = "不能为空", groups = { EditGroup.class })
    private String id;

    /**
     * 父级
     */
    @NotBlank(message = "父级不能为空", groups = { AddGroup.class, EditGroup.class })
    private String parentId;

    /**
     * 名称
     */
    @NotBlank(message = "名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 简称
     */
    @NotBlank(message = "简称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String shortName;

    /**
     * 经度
     */
    @NotBlank(message = "经度不能为空", groups = { AddGroup.class, EditGroup.class })
    private String longitude;

    /**
     * 纬度
     */
    @NotBlank(message = "纬度不能为空", groups = { AddGroup.class, EditGroup.class })
    private String latitude;

    /**
     * 级别 1 省 2 市 3 区 4 乡镇/街道
     */
    @NotNull(message = "级别 1 省 2 市 3 区 4 乡镇/街道不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long level;

    /**
     * 排序
     */
    @NotNull(message = "排序不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long sort;

    /**
     * 状态 0 无效 1 有效
     */
    @NotNull(message = "状态 0 无效 1 有效不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer status;


}
